/*
 * @(#)MaintDmsPermissionForm.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.dms.web;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

import com.dcivision.framework.ApplicationException;
import com.dcivision.framework.GlobalConstant;
import com.dcivision.framework.bean.AbstractBaseObject;

/**
  MaintDmsPermissionForm.java

  This class is the for web form purpose.

  @author          Rollo Chan
  @company         DCIVision Limited
  @creation date   13/08/2003
  @version         $Revision: 1.5 $
*/

public class MaintDmsPermissionForm extends com.dcivision.setup.web.AbstractActionPermissionForm {

  public static final String REVISION = "$Revision: 1.5 $";

  private String objectID = null;
  private String objectType = null;
  private String docParentID = null;
  private String rootID = null;
  private String curFunctionCode = null;
  private String permission = null;

  private String inheritanceFlag = GlobalConstant.TRUE;

  /** used for return button to find return navigation */
  private String directURL=null;

  public MaintDmsPermissionForm() {
    super();
  }

  public String getObjectID() {
    return(this.objectID);
  }

  public void setObjectID(String objectID) {
    this.objectID = objectID;
  }

  public String getObjectType() {
    return(this.objectType);
  }

  public void setObjectType(String objectType) {
    this.objectType = objectType;
  }

  public String getDocParentID() {
    return(this.docParentID);
  }

  public void setDocParentID(String docParentID) {
    this.docParentID = docParentID;
  }

  public String getCurFunctionCode() {
    return(this.curFunctionCode);
  }

  public void setCurFunctionCode(String curFunctionCode) {
    this.curFunctionCode = curFunctionCode;
  }

  public String getRootID() {
    return(this.rootID);
  }

  public void setRootID(String rootID) {
    this.rootID = rootID;
  }

  public String getPermission() {
    return(this.permission);
  }

  public void setPermission(String permission) {
    this.permission = permission;
  }

  public String getInheritanceFlag() {
    return(this.inheritanceFlag);
  }

  public void setInheritanceFlag(String inheritanceFlag) {
    this.inheritanceFlag = inheritanceFlag;
  }

  public String getDirectURL(){
    return this.directURL;
  }

  public void setDirectURL(String directURL){
    this.directURL=directURL;
  }

  public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
    return super.validate(mapping, request);
  }

  public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
    this.setID(null);
    this.setObjectID(null);
    this.setPermission(null);
    this.setObjectType(null);
    this.setDocParentID(null);
    this.setCurFunctionCode(null);
    this.setRootID(null);
    this.setInheritanceFlag(null);
    this.setRecordStatus(null);
    this.setUpdateCount(null);
    this.setCreatorID(null);
    this.setCreateDate(null);
    this.setUpdaterID(null);
    this.setUpdateDate(null);
  }

  public AbstractBaseObject getFormData() throws ApplicationException {
    return null;
  }

  public void setFormData(AbstractBaseObject baseObj) throws ApplicationException {
  }
}
